#include "user_printf.h"


void Uart5_printf(char *format, ...)
{
  char buf[512]; //定义临时数组，根据实际发送大小微调
 
  va_list args;
  va_start(args, format);
  uint16_t len = vsnprintf((char *)buf, sizeof(buf), (char *)format, args);
  va_end(args);
  HAL_UART_Transmit(&huart5,(uint8_t *)buf,len,1000);
}


